From: Florian Müllner Date: Thu, 12 Aug 2021 00:34:12 +0000 (+0200) Subject: appMenu: Only include non-skip-taskbar windows X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~106 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8b1e1834f0b1bebfaec2555da63cbeaf68b632a8;p=gnome-shell.git appMenu: Only include non-skip-taskbar windows There's a subtle difference between the top bar menu and the app icon context menus in the overview regarding the "Open Window" section. The former includes skip-taskbar windows, the latter doesn't. It clearly doesn't make sense for the context menu to include windows that aren't shown in the overview, but skip-taskbar windows are likely also less useful in the top bar menu. Just settle on the behavior of the context menus and move on. Part-of: --- diff --git a/js/ui/appMenu.js b/js/ui/appMenu.js index f1256f7c4..3c363bf9c 100644 --- a/js/ui/appMenu.js +++ b/js/ui/appMenu.js @@ -166,7 +166,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu { if (!this._app) return; - const windows = this._app.get_windows(); + const windows = this._app.get_windows().filter(w => !w.skip_taskbar); if (windows.length < 2) return;